/**
 * LoginAction.java
 * Apr 8, 2014
 * Copyright: phongtdse60732@fpt.edu.vn
 */
package service.login;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author trandophong
 * @version 1.0
 */
public class LoginAction extends ActionSupport {
	private String username;
	private String password;
	private String message;
	private boolean result;

	public String login() {
		message = "true";
		result = true;
		return SUCCESS;
	}

	/**
	 * Get value of the username
	 * 
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * Set value for the username
	 * 
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * Get value of the password
	 * 
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Set value for the password
	 * 
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Get value of the message
	 * 
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * Set value for the message
	 * 
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * Get value of the result
	 * 
	 * @return the result
	 */
	public boolean isResult() {
		return result;
	}

	/**
	 * Set value for the result
	 * 
	 * @param result
	 *            the result to set
	 */
	public void setResult(boolean result) {
		this.result = result;
	}
}
